import Vue from 'vue'
import Router from 'vue-router'
//导入Login.vue文件,
import Login from "../components/Login";
import Register from "../components/Register";
import Addemp from "../components/Addemp";
import Emplist from "../components/Emplist";
import Updateemp from "../components/Updateemp";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      // name:"Login",
      component:Login,
    },
     {
      path: '/login',
      // name:"Login",
      component:Login,
    },
     {
      path: '/register',
      // name:"Register",
      component:Register,
    },
       {
      path: '/addemp',
      // name:"addemp",
      component:Addemp,
    },
       {
      path: '/emplist',
      // name:"Emplist",
      component:Emplist,
    },
       {
      path: '/updateemp',
      name:"updateemp",
      component:Updateemp,
    },
        {
      path: '/updateemp/:id',
      name:"updateemp",
      component:Updateemp,
    },
  ]
})
